package com.zhang.framelib.util.page;

import java.util.List;

/**
 * 分页工具类
 * Title:Pagination
 * Description:
 * @Edit_Description:cuishuaiming
 * @version:zhang-framelib 1.0
 */
public class Pagination extends BasePage{
	
	private static final long serialVersionUID = 5729482538591310351L;
    public static ThreadLocal<Pagination> threadLocal = new ThreadLocal<Pagination>();

    public Pagination() {
        
    }

    /**
     * 构造器.
     * 
     * @param pageNo
     *            页码.
     * @param pageSize
     *            每页几条数据.
     * @param totalCount
     *            总共几条数据.
     */
    public Pagination(int pageNo, int pageSize, int totalCount) {
        super(pageNo, pageSize, totalCount);
    }

    /**
     * 构造器.
     * 
     * @param pageNo
     *            页码.
     * @param pageSize
     *            每页几条数据.
     * @param totalCount
     *            总共几条数据.
     * @param list
     *            分页内容.
     */
    public Pagination(int pageNo, int pageSize, int totalCount, List<?> list) {
        super(pageNo, pageSize, totalCount);
        this.list = list;
    }

    /**
     * 当前页的数据.
     */
    private List<?> list;

    /**
     * 获得分页内容.
     * 
     */
    public List<?> getList() {
        return list;
    }

    /**
     * 设置分页内容.
     */
    public void setList(List<?> list) {
        this.list = list;
    }
}
